package com.zhiyou100.loans.servlet.refund;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.zhiyou100.loans.service.RefundbillService;
import com.zhiyou100.loans.service.impl.RefundbillServiceImpl;

import net.sf.json.JSONObject;
@WebServlet("/RefundCurrentServlet")
public class RefundCurrentServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		//获取借款单id
		String loanbillid = request.getParameter("loanbillid");
		RefundbillService rs = new RefundbillServiceImpl();
		JSONObject data = rs.selectByLbid(loanbillid);
		response.getWriter().println(data);;
		
	}

}
